/**
 * 
 */
package fr.mynounou.web.model.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

/**
 * @author btavernier
 *
 */
public abstract class JpaDAO {
	
	EntityManagerFactory emf;
	EntityManager em;
	
	/**
	 * @return the entityManager
	 */
	public abstract EntityManager getEntityManager();
	
	public void setEntityManagerFactory(EntityManagerFactory emf){
		this.emf = emf;
	}
	
	public EntityManagerFactory getEntityManagerFactory(){
		return this.emf;
	}
}
